//
// Created by A on 2022/10/22.
//

#ifndef LOUTINE_TIME_SCHED_H
#define LOUTINE_TIME_SCHED_H

#include <sys/time.h>
#include <stdio.h>
#include <signal.h>

#include <pthread.h>
#include "util.h"
#include "gmp.h"


#define MIN_SCHED_INTERVAL_USEC (98*1000)// 98ms

#define INIT_TIME_SLOT_SIZE 10

#define USEC_PER_TICK (6000) // 6ms


struct p_interval_struct {
    void (*p_interval_handler)(void *, int);

    void *handler_arg;
};


void do_timer2();


void test_timer();

#endif //LOUTINE_TIME_SCHED_H
